package ar.edu.utn.frba.tacs.warnes.aop;

import java.util.Date;

/**
 * Clase usada para logueo
 * @author Diego
 *
 */
public abstract class Utils {

	public static void loguear(String s){
		System.out.println(new Date(System.currentTimeMillis())+": "+s);
	}

	@SuppressWarnings("deprecation")
	public static Date crearFecha(String fecha) {
		String[] sp = fecha.split("/");
		return new Date(Integer.valueOf(sp[2]), Integer.valueOf(sp[1]), Integer.valueOf(sp[0]));
	}

}
